package xxl.robotlegs.utils 
{
	import flash.utils.getQualifiedClassName;
	/**
	 * ...
	 * @author XXL
	 */
	public class UID 
	{
		
		private static var _I:uint = 0;
		
		public static function Create(source:*= null):String
		{
			if (source is Class)
			{
				source = getQualifiedClassName(source).split("::").pop();
			}
			return (source?source + "-":"")
				+ (_I++).toString(16)
				+ "-"
				+ (Math.random() * 255).toString(16);
		}
		
	}

}